class ListErrorCount:
    count = 0
    send_error_count = 0

    @staticmethod
    def get_count(error=None):
        if error:
            ListErrorCount.count = ListErrorCount.count + 1
        else:
            ListErrorCount.count = 0

        error_count = ListErrorCount.count

        return error_count

    @staticmethod
    def get_send_error_count(error=None):
        if error:
            ListErrorCount.send_error_count += 1
        else:
            ListErrorCount.send_error_count = 0

        return ListErrorCount.send_error_count


class DetailErrorCount:
    count = 0
    send_error_count = 0

    @staticmethod
    def get_count(error=None):
        if error:
            DetailErrorCount.count = DetailErrorCount.count + 1
        else:
            DetailErrorCount.count = 0

        error_count = DetailErrorCount.count

        return error_count

    @staticmethod
    def get_send_error_count(error=None):
        if error:
            DetailErrorCount.send_error_count += 1
        else:
            DetailErrorCount.send_error_count = 0

        return DetailErrorCount.send_error_count
